package com.xie.smfs.util;

import java.util.List;

public class EventStoryEntry {
    private String id;
    private TriggerConditions triggerConditions;
    private String story;

    // 用于Gson反序列化的无参构造函数
    public EventStoryEntry() {}

    public EventStoryEntry(String id, TriggerConditions triggerConditions, String story) {
        this.id = id;
        this.triggerConditions = triggerConditions;
        this.story = story;
    }

    public EventStoryEntry(String ghostEyeEvent, String s, TriggerConditions conditions) {
    }

    // Getters
    public String getId() { return id; }
    public TriggerConditions getTriggerConditions() { return triggerConditions; }
    public String getStory() { return story; }

    public static class TriggerConditions {
        private int minDay;
    private List<String> requiredItems;
    private boolean isRepeatable;
    private String timeRange; // 新增时间范围条件，如"night"表示夜晚

        // 用于Gson反序列化的无参构造函数
        public TriggerConditions() {}

        public TriggerConditions(int minDay, List<String> requiredItems, boolean isRepeatable) {
            this.minDay = minDay;
            this.requiredItems = requiredItems;
            this.isRepeatable = isRepeatable;
        }

        // Getters
        public int getMinDay() { return minDay; }
        public List<String> getRequiredItems() { return requiredItems; }
        public boolean isRepeatable() { return isRepeatable; }
    }
}